package com.jiazhong.mingxing.boot.boot03.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Slf4j
// http://localhost:8080/boot03/first
// 产生对象
@Controller
@RequestMapping("/first")
public class FirstController {

    @RequestMapping("/a")
    public String a() {
        log.info("执行了firstController`a method!");
        // 跳转的路径
        return "first";
    }
}
